﻿<Fluent:RibbonWindow x:Class="WINADM.Client.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sapt="clr-namespace:System.Activities.Presentation.Toolbox;assembly=System.Activities.Presentation"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        Title="MainWindow" Height="350" Width="525" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" Loaded="RibbonWindow_Loaded">
    <Window.Resources>
        <sys:String x:Key="AssemblyName">System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</sys:String>
    </Window.Resources>
    <Grid>
        <StackPanel>
            <Fluent:Ribbon>
                <Fluent:Ribbon.Menu>
                    <Fluent:Backstage x:Name="bckStgApplications" Header="Applications">
                        <ScrollViewer >
                            <Fluent:BackstageTabControl x:Name="bckStgApplicationsTab" Height="Auto">
                                <Fluent:BackstageTabItem Header="KW"></Fluent:BackstageTabItem>
                            </Fluent:BackstageTabControl>
                        </ScrollViewer>
                    </Fluent:Backstage>
                </Fluent:Ribbon.Menu>



                <Fluent:RibbonTabItem Header="BP1XEUAP1475" >
                    <Fluent:RibbonGroupBox Header="Group" Width="200">
                        <Image x:Name="AA" Source="Images\Windows-Media-Center-icon.png" />
                    </Fluent:RibbonGroupBox>

                </Fluent:RibbonTabItem>

                <Fluent:RibbonTabItem Header="BP1XEUAP1479" >
                    <Fluent:RibbonGroupBox Header="Group" Width="200">

                    </Fluent:RibbonGroupBox>

                </Fluent:RibbonTabItem>




            </Fluent:Ribbon>
            <!--Contextual Tab Groups-->
            <Grid x:Name="APPGRID">
                <ScrollViewer >
                    <StackPanel Orientation="Horizontal">
                    <ItemsControl ItemsSource="{Binding Environments}">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>

                                <!--<Image x:Name="BB" Source="Images\Windows-Media-Center-icon.png" />-->
                                
                                    <StackPanel  >
                                        <Border BorderBrush="SkyBlue" BorderThickness="5" Height="100"  Width="200" CornerRadius="50" Background="White">
                                            <TextBlock Text="{Binding Name}" FontFamily="Arial" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22"></TextBlock>
                                        </Border>
                                        <StackPanel>
                                            <ItemsControl ItemsSource="{Binding Servers}">
                                                <ItemsControl.ItemTemplate>
                                                    <DataTemplate>
                                                        <Border BorderBrush="SkyBlue" BorderThickness="2" Height="50"  Width="200" CornerRadius="10" Margin="0,20,0,0" Background="White">
                                                            <StackPanel Orientation="Horizontal" >
                                                                <Image Source="Images\Server.png" Height="40" Width="40" Margin="10,0,0,0"/>
                                                                <TextBlock Text="{Binding Computer.ComputerName}" FontFamily="Arial"  VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" Margin="10,0,0,0"></TextBlock>
                                                            </StackPanel>
                                                        </Border>
                                                    </DataTemplate>
                                                </ItemsControl.ItemTemplate>
                                            </ItemsControl>
                                        </StackPanel>
                                    </StackPanel>
                               

                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                    </StackPanel>
                </ScrollViewer>
            </Grid>
        </StackPanel>

    </Grid>
</Fluent:RibbonWindow>
